package com.itheima.client;

import com.itheima.user.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;


@FeignClient("itheima-user")
public interface UserClient {


    @GetMapping("/user/{id}")//这里一定要取别名么？？？
    public User getUser(@PathVariable(value = "id") Long id);
}
